<?php

namespace app\common\validate;

use think\Validate;

class Video extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
    	'video_file' => 'require',
	    'title' => 'require|min:5',
	    'goods_id' => 'require'
    ];
    /**
     * 提示消息
     */
    protected $message = [
    	'video_file' => '请上传视频',
    	'title' => '评价内容最少5个字',
	    'goods_id' => '请选择商品进行评价'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
